package com.zhong;

import com.zhong.po.Dept;
import com.zhong.utils.ParamValidatorUtils;
import org.springframework.web.bind.annotation.RestController;

/**
 * Hello world!
 *
 */
@RestController
public class App {
    public static void main( String[] args ) throws Exception{
        //检测dept非空字段
        Dept dept = new Dept();
        dept.setDeptNo(1);  //部门编号
        dept.setDeptName("tom"); //部门名称
//        dept.setLoc("深圳");  //部门地址

        ParamValidatorUtils.validNullAndBlank(dept, "deptNo","deptName","loc" );

        //对dept进行持久化 就是调用mybatis insert(dept)


    }
}
